Fixed bug #profile.php#2

Bug description:
	Empty profile is generated when non-existent user passed.

Bug fix:
	@VMai solution from http://stackoverflow.com/questions/24983560

Bug reason:
	Original SQL query returned one row in result-set EVEN if there
	wasn't any user with passed name; in this case, fields were filled
	with NULLs.

	More information and description of this bug can be found on the
	above URL address.
Merge remote-tracking branch 'github/dh-1.5' into dh-1.5