fix(hhvm): hhvm compatibility

Reducing scrutinizer noise
fix(deprecated): fix container reference in getter function
fix(deprecated): fix incorrectly reference variable
fix(deprecated): fix incorrectly reference variable
fix(hhvm): hhvm compatibility

Reducing scrutinizer noise
fix(output): terminate attribute formatting early if attributes are not set

Reduce noise in logs by terminating elgg_format_attributes() early

Refs #6458
fix (views): use api to format ajax loader attributes

Reduce noise in logs by declaring variables and using elgg_format_attributes()

Refs #6458
fix(pages): comment out annotation menu hook handler registration

Do not register a handler for "register","menu:annotation" hook - the callback function is not defined

Refs #6410