Isset check added to getOrderedJoins function in model/SQLQuery.php

Checking if order isset in getOrderedJoins for php 5.4 strictness.