Bug Fix - 500 server error on some servers

Corrected an issue where some servers were throwing HTTP response code
500 (Internal Server Error) under certain circumstances.