handle improperly formatted initial requests properly (issue #5483)