ENYO-3561: corrected unset protocol in request for error page

The error page URL was not defined with its protocol which failed the copy of error.html as debug.html in the app before posting.
Added as well some variable in warnings displayed on console for troubleshooting in case of issue.